package mypazar.salesman;

import tr.edu.ege.seagent.planner.htn.Action;
import tr.edu.ege.seagent.planner.htn.ExecutionMethod;
import tr.edu.ege.seagent.planner.htn.Provision;

/**
 * Action class of ACInformProductPrice.
 */
public class ACInformProductPrice extends Action {

	/**
	 * ProductPrice provision.
	 */
	@Provision
	private Integer ProductPrice;

	/**
	 * Returns the value of the ProductPrice provision.
	 */
	public Integer getProductPrice() {
		return this.ProductPrice;
	}

	/**
	 * Sets the value of the ProductPrice provision.
	 */
	public void setProductPrice(Integer ProductPrice) {
		this.ProductPrice = ProductPrice;
	}

	// /**
	// * Price outcome.
	// */
	// @Outcome
	// private Integer Price;
	//
	// /**
	// * Returns the value of the Price outcome.
	// */
	// public Integer getPrice() {
	// return this.Price;
	// }
	//
	// /**
	// * Sets the value of the Price outcome.
	// */
	// public void setPrice(Integer Price) {
	// this.Price = Price;
	// }
	//
	// /**
	// * SenderName outcome.
	// */
	// @Outcome
	// private String SenderName;
	//
	// /**
	// * Returns the value of the SenderName outcome.
	// */
	// public String getSenderName() {
	// return this.SenderName;
	// }
	//
	// /**
	// * Sets the value of the SenderName outcome.
	// */
	// public void setSenderName(String SenderName) {
	// this.SenderName = SenderName;
	// }

	/**
	 * Execution method.
	 */
	@ExecutionMethod
	public void execute() {
		// CartagoBasicContext ctX = (CartagoBasicContext)
		// getHeapValue(PazarVocabulary.CTX_SMAN_ITEM_NAME);
		// ArtifactId artifactId = null;
		// String artifactName = "Stall"
		// + getAgentIdentifier().toString().substring(8, 9);

		System.out.println("INFOOOOOOOOOOOOOOOORRRRRRRMMMMMMMM");

		// try {
		// artifactId = ctX.lookupArtifact(artifactName);
		// } catch (CartagoException e) {
		// e.printStackTrace();
		// }
		//
		// try {
		// ctX.focus(artifactId);
		// } catch (CartagoException e) {
		// e.printStackTrace();
		// }
		//
		// ************************************
		//

		// ArtifactObsProperty priceObsProperty = ctX.getObsProperty("price");
		// priceObsProperty.

		// this.setSenderName(getAgentIdentifier().toString().substring(0, 9));
		// this.setPrice(getProductPrice());
	}
}
